From d6ff39d0aefbdf62f1b57c936bd600e6d684deba Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Fri, 26 Aug 2005 08:50:02 +0000 Subject: [PATCH] Changed xentop.c to include version in the summary. Signed-off-by: Judy Fischbach Signed-off-by: Christian Limpach --- tools/xenstat/xentop/xentop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/xenstat/xentop/xentop.c b/tools/xenstat/xentop/xentop.c index 2a30cd4eb8..c43891cc71 100644 --- a/tools/xenstat/xentop/xentop.c +++ b/tools/xenstat/xentop/xentop.c @@ -593,6 +593,7 @@ void do_summary(void) #define TIME_STR_LEN 9 const char *TIME_STR_FORMAT = "%H:%M:%S"; char time_str[TIME_STR_LEN]; + const char *ver_str; unsigned run = 0, block = 0, pause = 0, crash = 0, dying = 0, shutdown = 0; unsigned i, num_domains = 0; @@ -603,7 +604,8 @@ void do_summary(void) strftime(time_str, TIME_STR_LEN, TIME_STR_FORMAT, localtime(&curtime.tv_sec)); num_domains = xenstat_node_num_domains(cur_node); - print("xentop - %s\n", time_str); + ver_str = xenstat_node_xen_ver( cur_node); + print("xentop - %s Xen %s\n", time_str, ver_str); /* Tabulate what states domains are in for summary */ for (i=0; i < num_domains; i++) { -- 2.30.2